package com.zt.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zt.common.Result;
import com.zt.pojo.RolePermissions;
import com.zt.service.RolePermissionsService;
import com.zt.mapper.RolePermissionsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author lenovo
* @description 针对表【role_permissions】的数据库操作Service实现
* @createDate 2025-02-09 10:03:44
*/
@Service
public class RolePermissionsServiceImpl extends ServiceImpl<RolePermissionsMapper, RolePermissions>
    implements RolePermissionsService{
    @Autowired
    private RolePermissionsMapper rolePermissionsMapper;
    @Override
    public Result delete(Integer roleId, Integer permissionId) {
        boolean delete=rolePermissionsMapper.deleteRolePermission(roleId,permissionId);
        return delete?Result.OK():Result.ERROR();
    }
}




